package com.dhms.vostok1.data.fault

import androidx.annotation.NonNull
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.dhms.vostok1.data.BasePageQueryData
import com.dhms.vostok1.data.DEFAULT_PAGE_LIMIT
import com.dhms.vostok1.data.DEFAULT_PAGE_OFFSET
import com.dhms.vostok1.data.SecondaryBaseListData
import com.dhms.vostok1.data.abnormals.FaultState
import com.squareup.moshi.Json

/**
{
"code": 200,
"data": [
{
"id": 1,
"name": "轴系故障",
"parent_id": 0,
"node_path": "0/1",
"type": 1,
"conclusion": "",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 2,
"name": "轴承故障",
"parent_id": 0,
"node_path": "0/2",
"type": 1,
"conclusion": "",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 3,
"name": "齿轮故障",
"parent_id": 0,
"node_path": "0/3",
"type": 1,
"conclusion": "",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 4,
"name": "带轮故障",
"parent_id": 0,
"node_path": "0/4",
"type": 1,
"conclusion": "",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 5,
"name": "滑动轴承故障",
"parent_id": 0,
"node_path": "0/5",
"type": 1,
"conclusion": "",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 101,
"name": "轴系正常",
"parent_id": 0,
"node_path": "0/101",
"type": 0,
"conclusion": "轴系未见异常",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 102,
"name": "不对中",
"parent_id": 1,
"node_path": "0/1/102",
"type": 1,
"conclusion": "疑似轴系不对中",
"suggestion": "请现场核实有无异常振动，噪声，温度是否对升高",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 103,
"name": "底座松动",
"parent_id": 1,
"node_path": "0/1/103",
"type": 1,
"conclusion": "疑似所在轴系轴承座松动",
"suggestion": "请现场核实有无异常振动，噪声，温度是否对升高",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 104,
"name": "轴系松动",
"parent_id": 1,
"node_path": "0/1/104",
"type": 1,
"conclusion": "疑似轴系共振",
"suggestion": "请现场核实有无异常振动，噪声，温度是否对升高",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 105,
"name": "不平衡",
"parent_id": 1,
"node_path": "0/1/105",
"type": 1,
"conclusion": "疑似轴系不平衡",
"suggestion": "请现场核实有无异常振动，噪声，温度是否对升高",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 106,
"name": "转子或机座松动",
"parent_id": 1,
"node_path": "0/1/106",
"type": 1,
"conclusion": "疑似电机转子松动或电机底座松动",
"suggestion": "请现场核实有无异常振动，噪声，温度是否对升高",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 201,
"name": "轴承正常",
"parent_id": 0,
"node_path": "0/201",
"type": 0,
"conclusion": "轴承未见异常",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 202,
"name": "内圈故障",
"parent_id": 2,
"node_path": "0/2/202",
"type": 1,
"conclusion": "疑似轴承内圈故障",
"suggestion": "请现场核实轴承有无异响，停机时检修确认故障",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 203,
"name": "外圈故障",
"parent_id": 2,
"node_path": "0/2/203",
"type": 1,
"conclusion": "疑似轴承外圈故障",
"suggestion": "请现场核实轴承有无异响，停机时检修确认故障",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 204,
"name": "滚动体故障",
"parent_id": 2,
"node_path": "0/2/204",
"type": 1,
"conclusion": "疑似轴承滚动体故障",
"suggestion": "请现场核实轴承有无异响，停机时检修确认故障",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 205,
"name": "保持架故障",
"parent_id": 2,
"node_path": "0/2/205",
"type": 1,
"conclusion": "疑似轴承保持架故障",
"suggestion": "请现场核实轴承有无异响，停机时检修确认故障",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 206,
"name": "内圈故障",
"parent_id": 2,
"node_path": "0/2/206",
"type": 1,
"conclusion": "推测该轴承或所在轴系的另一未知品牌型号的轴承内圈存在缺陷",
"suggestion": "请现场核实轴承有无异响，停机时检修确认故障",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 207,
"name": "外圈或滚动体故障",
"parent_id": 2,
"node_path": "0/2/207",
"type": 1,
"conclusion": "推测该轴承或所在轴系的另一未知品牌型号的轴承外圈或滚动体存在缺陷",
"suggestion": "请现场核实轴承有无异响，停机时检修确认故障",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 301,
"name": "齿轮正常",
"parent_id": 0,
"node_path": "0/301",
"type": 0,
"conclusion": "齿轮未见异常",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 302,
"name": "主动轮故障",
"parent_id": 3,
"node_path": "0/3/302",
"type": 1,
"conclusion": "疑似齿轮主动轮故障",
"suggestion": "通过观测孔检查主动轮有无点蚀、磨损、断齿等现象",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 303,
"name": "从动轮故障",
"parent_id": 3,
"node_path": "0/3/303",
"type": 1,
"conclusion": "疑似齿轮从动轮故障",
"suggestion": "通过观测孔检查从动轮有无点蚀、磨损、断齿等现象",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 304,
"name": "齿轮故障",
"parent_id": 3,
"node_path": "0/3/304",
"type": 1,
"conclusion": "疑似齿轮故障",
"suggestion": "通过观测孔检查齿轮有无点蚀、磨损、断齿等现象",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 401,
"name": "带轮正常",
"parent_id": 0,
"node_path": "0/401",
"type": 0,
"conclusion": "带轮未见异常",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 402,
"name": "皮带故障",
"parent_id": 4,
"node_path": "0/4/402",
"type": 1,
"conclusion": "疑似皮带缺陷",
"suggestion": "检查皮带是否存在缺陷",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 403,
"name": "带轮故障",
"parent_id": 4,
"node_path": "0/4/403",
"type": 1,
"conclusion": "疑似皮带轮故障",
"suggestion": "检查皮带轮是否损伤",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 404,
"name": "主动轮故障",
"parent_id": 4,
"node_path": "0/4/404",
"type": 1,
"conclusion": "疑似皮带主动轮故障",
"suggestion": "检查主动轮是否损伤",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 405,
"name": "从动轮故障",
"parent_id": 4,
"node_path": "0/4/405",
"type": 1,
"conclusion": "疑似皮带从动轮故障",
"suggestion": "检查从动轮是否损伤",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 406,
"name": "皮带松动",
"parent_id": 4,
"node_path": "0/4/406",
"type": 1,
"conclusion": "疑似皮带松动",
"suggestion": "检查皮带松紧性，张紧装置是否正常",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 407,
"name": "皮带张紧力过大",
"parent_id": 4,
"node_path": "0/4/407",
"type": 1,
"conclusion": "疑似皮带张紧力过大",
"suggestion": "检查皮带松紧性，张紧装置是否正常",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 501,
"name": "滑动轴承正常",
"parent_id": 0,
"node_path": "0/501",
"type": 0,
"conclusion": "滑动轴承未见异常",
"suggestion": "",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 502,
"name": "不平衡",
"parent_id": 5,
"node_path": "0/5/502",
"type": 1,
"conclusion": "疑似轴系不平衡",
"suggestion": "请对滑动轴承进行平衡检测",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 503,
"name": "轻微不对中",
"parent_id": 5,
"node_path": "0/5/503",
"type": 1,
"conclusion": "疑似轴系轻微不对中",
"suggestion": "请检查联轴器对中情况",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 504,
"name": "严重不对中",
"parent_id": 5,
"node_path": "0/5/504",
"type": 1,
"conclusion": "疑似轴系严重不对中",
"suggestion": "请检查联轴器对中情况",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
},
{
"id": 505,
"name": "油膜涡动",
"parent_id": 5,
"node_path": "0/5/505",
"type": 1,
"conclusion": "疑似油膜涡动",
"suggestion": "检查是否存在油膜涡动情况",
"org_id": 1000000000000001,
"updated_at": "2022-07-15 16:04:55",
"created_at": "2022-07-15 16:04:55"
}
]
}
 */
@Entity(tableName = "fault_type_item_data")
data class FaultTypeItemData(
    @Json(name = "id") @PrimaryKey
    val id: Long?,
    @Json(name = "name")
    val name: String?,
    @Json(name = "parent_id")
    val parentId: Long?,
    @Json(name = "node_path")
    val nodePath: String?,
    @Json(name = "type")
    val type: Int?,
    @Json(name = "conclusion")
    val conclusion: String?,
    @Json(name = "suggestion")
    val suggestion: String?,
    @Json(name = "org_id")
    val org_id: Long?,
    @Json(name = "updated_at")
    val updatedAt: String?,
    @Json(name = "created_at")
    val createdAt: String?,
)

